


if __name__ == "__main__":
    import pandas as pd
    data_df = pd.read_csv('/root/radar_data_rate.csv')
    mt6 = []
    lt6 = []
    for i in range(len(data_df)):
        ws = data_df['NacWdSpdFltS'].iloc[i]
        if ws > 6:
            mt6.append(data_df.iloc[i].to_dict())
        else:
            lt6.append(data_df.iloc[i].to_dict())
    
    mt6 = pd.DataFrame(mt6)
    lt6 = pd.DataFrame(lt6)
    mt6.to_csv('/root/mt6.csv', index=False)
    lt6.to_csv('/root/lt6.csv', index=False)

    print(mt6, lt6)